//
//  StereoOffCommand.m
//  CommandPattern
//
//  Created by ying on 2017/11/29.
//  Copyright © 2017年 SUIRUI. All rights reserved.
//

#import "StereoOffCommand.h"
#import "Stereo.h"

@interface StereoOffCommand ()
@property (nonatomic, strong) Stereo *stereo;

@end

@implementation StereoOffCommand

- (instancetype)initWithStereo:(Stereo *)stereo{
    self = [super init];
    if (self) {
        self.stereo = stereo;
    }
    return self;
}

- (void)execute{
    [super execute];
    [self.stereo stereoOff];
}

@end
